package com.lovi.io_.decorator_;

/**
 * 测试装饰器模式
 */
public class Test {
    public static void main(String[] args) {
        BufRe bufRe = new BufRe(new FileRe());
        bufRe.read();
        bufRe.reRead(3);
        System.out.println("--------");
        BufRe bufRe2 = new BufRe(new StringRe());
        bufRe2.read();
        bufRe2.reRead(5);


    }
}
